import 'package:environmental_les_app/common/style/colours.dart';
import 'package:flutter_clx_base/flutter_clx_base.dart';

class BuildFileItem extends StatelessWidget {
  const BuildFileItem({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.all(12),
      margin: const EdgeInsets.only(top: 10, left: 10, right: 10),
      decoration: const BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.all(Radius.circular(8)),
      ),
      child: Row(
        children: [
          ImageWidget.loadAssetImage('ic_library_file', width: 30, height: 30),
          hGap10,
          const Expanded(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(
                  "文件名称.pdf",
                  style: TextStyle(
                    // 下划线
                    decoration: TextDecoration.underline,
                    color: Colours.text254,
                    fontSize: 15,
                  ),
                ),
                Text(
                  "2024-06-10",
                  style: TextStyle(
                    color: Colours.text09C,
                    fontSize: 13,
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
